<!--
 * @Author: xuzehan 123@qq.com
 * @Date: 2022-07-12 10:56:39
 * @LastEditors: xuzehan 123@qq.com
 * @LastEditTime: 2022-07-13 14:27:50
 * @FilePath: \cesium_dome\src\views\mock.vue
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
  <div>
    <h2>mock数据：</h2>
    <p>{{data}}</p>
  </div>
</template>

<script>
import { getUserInfo } from '@/api/api.js'
export default {
  data () {
    return {
      url: '/mocks',
      data: ''
    }
  },
  created () {
    getUserInfo(this.url)
      .then((res) => {
        console.log(res)
        this.data = res.data.data
      })
  }
}

</script>

<style>
</style>